<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<div class="top">
    <button onclick="showJava()">JS调java方法</button>
    <div >JS调java方法结果：<span id="infoJava"></span></div>
    <div >java调JS方法结果：<span id="info"></span></div>
    <input type='button' onclick='changeText()' value='Change Text' />
    <input type='button' onclick='apps.exit()' value='退出系统平台' />
    <input id="suggestId" name="" type="text" class="" placeholder="请输入地址" required="required">
</div>
</body>
<script>
    // let apps;
    function showJava() {
        document.getElementById("infoJava").innerText= apps.showInfo("java");
    }
    function show(a,b) {
        document.getElementById("info").innerText="a="+a+",b="+b;
    }
    function changeText() {
        document.getElementById('infoJava').innerText = 'Fred Flinstone';
    }
    function getText() {
        return document.getElementById('suggestId').value;
    }
</script>
</html>